package com.bph.preference.controller;

import com.bph.commons.pojo.User;
import com.bph.commons.vo.ResultVo;
import com.bph.preference.service.PreferenceService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;

@RestController
@RequestMapping("/preference")
public class PreferenceController {
    @Resource
    private PreferenceService preferenceService;

    /**
     *根据邮箱获得偏好信息
     */
    @PostMapping("/selectPreferenceByMail")
    public ResultVo selectPreferenceByMail(User user){

        return preferenceService.selectPreferenceByMail(user);
    }
}
